package cn.minhx.lab.design_patterns.memento.f2;

import cn.minhx.lab.design_patterns.memento.f2.impl.LotteryResult;
import cn.minhx.lab.design_patterns.memento.f2.impl.LotteryService;
import cn.minhx.lab.design_patterns.memento.f2.impl.LotteryServiceImpl;
import com.alibaba.fastjson2.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {

    private static final Logger logger = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) {
        LotteryService lotteryService = new LotteryServiceImpl();
        LotteryResult result = lotteryService.draw("2765789109876");
        logger.info("测试结果：{}", JSON.toJSONString(result));
    }

}
